package org.southyin.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/article")
public class ArticleController {
    @PostMapping("/")
    public void test1(){
        System.out.println("test1");
    }

    @DeleteMapping("/")
    public void test2(){
        System.out.println("test2");
    }

    @PutMapping("/")
    public void test3(){
        System.out.println("test3");
    }

    @GetMapping("/{id}")
    public void test4(@PathVariable("id") int id){
        System.out.println(id);
        System.out.println("test4");
    }
}
